-
Notifications
You must be signed in to change notification settings - Fork 24.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(core): remove _tViewNode field from ViewRef #36814
refactor(core): remove _tViewNode field from ViewRef #36814
Conversation
@@ -271,7 +273,7 @@ export class ComponentRef<T> extends viewEngine_ComponentRef<T> { | |||
super(); | |||
this.instance = instance; | |||
this.hostView = this.changeDetectorRef = new RootViewRef<T>(_rootLView); | |||
this.hostView._tViewNode = assignTViewNodeToLView(_rootLView[TVIEW], null, -1, _rootLView); | |||
assignTViewNodeToLView(_rootLView[TVIEW], null, -1, _rootLView); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the return value from assignTViewNodeToLView
now? I can't find anywhere that uses it anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, good catch!
ad1e84b
to
5b3fd59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@pkozlowski-opensource Looks like this needs a rebase |
5b3fd59
to
1124111
Compare
1124111
to
1d23183
Compare
The _tViewNode field (that was marked as internal) on the ViewRef is not necessery as a reference to a relevant TView is available as a local variable.
1d23183
to
c77389f
Compare
The _tViewNode field (that was marked as internal) on the ViewRef is not necessery as a reference to a relevant TView is available as a local variable. PR Close #36814
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The _tViewNode field (that was marked as internal) on the ViewRef is not necessery as a reference to a relevant TView is available as a local variable. PR Close angular#36814
The _tViewNode field (that was marked as internal) on the ViewRef is not
necessary as a reference to a relevant TView is available as a local
variable.